package com.qfedu.wmsuser;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan("com.qfedu.**.mapper")
// 默认@SpringBootApplication中的@ComponentScan扫描启动类所在的包及其子包的注解
// 本例中默认扫描com.qfedu.microuser
// 但是全局异常处理类在com.qfedu.commm的子包中，所以启动类扫描不到
// 所以就需要手动指定需要扫描的父包
@ComponentScan(basePackages = "com.qfedu.**")
// @ComponentScan(basePackages = {"com.qf", "com.qfedu"})
@EnableAsync
@EnableScheduling
public class WmsUserApplication {

    public static void main(String[] args) {
        SpringApplication.run(WmsUserApplication.class, args);
    }

}
